package lzy.service.impl;
import lzy.entity.Sales;
import lzy.mapper.SalesMapper;
import lzy.service.SalesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;

@Service
public class SalesServiceImpl implements SalesService {
    @Autowired
    private SalesMapper salesMapper;

    @Override
    public List<Sales> findByFilter(String salesNo, String batchNo, String customerName, Date startTime, Date endTime) {
        return salesMapper.findByFilter(salesNo, batchNo, customerName, startTime, endTime);
    }

    @Override
    public void addSales(lzy.entity.Sales sales) {
        salesMapper.addSales(sales);
    }
} 